package com.xiaoxu.rental.vo;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.List;

/**
 * @Title: RouteVo
 * @Author Mr.Xu
 * @Package com.xiaoxu.rental.vo
 * @Date 2024/7/26 15:14
 * @description:
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@AllArgsConstructor
@NoArgsConstructor
public class RouteVo {
    private String path;
    private String component;
    private String name;
    private Boolean alwaysShow;

    private Meta meta;
    //子路由
    private List<RouteVo> children;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public class Meta{
        private String title;
        private String icon;
        private Object[] roles;
    }
}
